#ifndef BLUETOOTHDEVICECELL_H
#define BLUETOOTHDEVICECELL_H

#include <QWidget>
#include <QLabel>
#include <QBluetoothDeviceInfo>
#include <QBluetoothUuid>

class BluetoothDeviceCell : public QWidget
{
    Q_OBJECT
public:
    explicit BluetoothDeviceCell(QWidget *parent = nullptr);
    ~BluetoothDeviceCell();
    void SetHeader(const QString &name, const QString address, const QString &rssi);
    void SetBluetoothDeviceInfo(const QBluetoothDeviceInfo &info);
    QBluetoothDeviceInfo GetBluetoothDeviceInfo() const;
    void SetBluetoothUuid(const QBluetoothUuid &uuid);
    QBluetoothUuid GetBluetoothUuid() const;

private:
    void Init();

private:
    QLabel *nameLabel{ nullptr };
    QLabel *addressLabel{ nullptr };
    QLabel *rssiLabel{ nullptr };
    QBluetoothDeviceInfo info;
    QBluetoothUuid bluetoothUuid;
};

#endif // BLUETOOTHDEVICECELL_H
